@extends('layouts._app')
@section('content')
    <body>
    <div class="wrap-container">
        @include('layouts._flash')
        <div id="LAY-popup-user-add" class="layui-layer-content">
            <div class="layui-form" lay-filter="layuiadmin-form-label" style="padding: 20px 30px 0 0;">
                {!! Form::open(['route' =>[ 'blog.notice.update',$notice->id],'class'=>'layui-form','method'=>'put']) !!}
                <div class="layui-form-item">
                    {!! Form::label('','* 名称：',['class'=>'layui-form-label','style'=>'color:red']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('name',"{$notice->name}",['required','lay-verify'=>'required','class'=>'layui-input','placeholder'=>'请输入名称']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','是否显示：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        <input type="radio" name="is_show" value="1" title="是" checked>
                        <input type="radio" name="is_show" value="2" title="否">
                    </div>

                </div>
                <div class="layui-form-item">
                    {!! Form::label('','简介：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::textarea('content',"{$notice->content}",['class'=>'layui-textarea','placeholder'=>'请输入简介']) !!}
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    {!! Form::submit('确认',['class'=>'layui-btn','lay-filter'=>'formDemo','lay-submit']) !!}
                </div>
            </div>
            {!! Form::close() !!}
        </div>
    </div>
    <script src="{{asset('static/admin/layui/layui.js')}}" type="text/javascript" charset="utf-8"></script>
    <script src="{{asset('js/jquery.min.js')}}" type="text/javascript" charset="utf-8"></script>
    <script>
        //Demo
        layui.use(['form', 'jquery'], function () {
            var form = layui.form();
            $ = layui.jquery;
            form.render();
        })
    </script>
    </body>
@endsection
